package com.mes.check.dao.iface;

import java.util.Date;
import java.util.List;

import com.mes.check.domain.WaixieCheckReport;
import com.mes.common.dao.iface.IBasicDao;
import com.mes.task.domain.PartTask;

public interface IWaixieCheckReportDao extends IBasicDao<WaixieCheckReport> {

	/**
	 * 通过零件任务唯一号和外协单位编号来唯一确定一条WaixieCheckReport
	 * @param partTaskUid
	 * @param coDeptId
	 * @return
	 * @throws Exception
	 */
	public WaixieCheckReport getWaixieCheckReport(String partTaskUid, String coDeptId) throws Exception;
	
	/**
	 * 获取一段时间内需要同步的外协零件任务
	 * @param fromDate
	 * @param toDate
	 * @return
	 * @throws Exception
	 */
	public List<PartTask> getNeedSyncWaixiePartTasksByTime(Date fromDate, Date toDate) throws Exception;
}
